package cn.sy.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-12-08
 */
@TableName("t_production_plan")
public class ProductionPlan extends Model<ProductionPlan> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 计划编号
     */
    @TableField("plan_number")
    private String planNumber;
    /**
     * 订单编号
     */
    @TableField("order_ref")
    private String orderRef;
    /**
     * 产品名称
     */
    @TableField("product_name")
    private String productName;
    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 交货日期
     */
    @TableField("delivery_date")
    private Date deliveryDate;
    /**
     * 联系人
     */
    private String contacts;
    /**
     * 联系人电话
     */
    @TableField("contact_phone")
    private String contactPhone;
    /**
     * 0未审核 -1审核失败 1审核成功
     */
    private Long status;
    /**
     * 负责人
     */
    @TableField("Planner_name")
    private String plannerName;
    /**
     * 负责人联系方式
     */
    @TableField("planner_email")
    private String plannerEmail;
    /**
     * 创建时间
     */
    @TableField("creat_time")
    private Date creatTime;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPlanNumber() {
        return planNumber;
    }

    public void setPlanNumber(String planNumber) {
        this.planNumber = planNumber;
    }

    public String getOrderRef() {
        return orderRef;
    }

    public void setOrderRef(String orderRef) {
        this.orderRef = orderRef;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getPlannerName() {
        return plannerName;
    }

    public void setPlannerName(String plannerName) {
        this.plannerName = plannerName;
    }

    public String getPlannerEmail() {
        return plannerEmail;
    }

    public void setPlannerEmail(String plannerEmail) {
        this.plannerEmail = plannerEmail;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductionPlan{" +
        ", id=" + id +
        ", planNumber=" + planNumber +
        ", orderRef=" + orderRef +
        ", productName=" + productName +
        ", customerName=" + customerName +
        ", deliveryDate=" + deliveryDate +
        ", contacts=" + contacts +
        ", contactPhone=" + contactPhone +
        ", status=" + status +
        ", plannerName=" + plannerName +
        ", plannerEmail=" + plannerEmail +
        ", creatTime=" + creatTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
